package mvcc

func find(id int64) IRow {
	if v, ok := Data[id]; ok {
		return v
	}
	return &DefaultRow{
		DbRowId: 0,
		value:   map[string]interface{}{},
	}
}


func generatorNewRow(id int64) IRow {
	return &DefaultRow{
		DbRowId: 0,
		value:   map[string]interface{}{},
	}
}

func inArrayIds64(id int64, ids []int64) bool {
	for _,v := range ids {
		if v == id {
			return true
		}
	}
	return false
}

func findIndexIds64(id int64, ids []int64) int {
	for i,v := range ids {
		if v == id {
			return i
		}
	}
	return -1
}